package com.ykh.spring.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-08-25
 * Time: 11:47
 */
//可以通过order直接改变 代理对象的优先级
@Component
@Aspect
@Order(1)
public class AopOrderTest {

    @Before("execution(* com.ykh.spring.aop.*.*(..))")
    public void beforeTest() {
        System.out.println("5555555555555555");
    }
}
